package cn.seecoder.ai.dao;

import cn.seecoder.ai.model.po.Config;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.CrudRepository;

import java.util.List;

public interface ConfigRepository extends JpaRepository<Config, Integer>, JpaSpecificationExecutor<Config> {


    List<Config> findByUserId(Integer userId);

    List<Config> findByUserIdOrderByCreatedTimeDesc(Integer userId);
}